package qeug.shsh.task.taskInfo;

import qeug.shsh.task.taskInfo.CustomerUnitBankList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "ROOT")
public class DataXmlSingleNode {

    private CustomerInfo customerInfo;
    private List<CustomerUnitBankList> customerUnitBankList;

    @XmlElement(name = "Data_xmlsinglenode")
    public CustomerInfo getCustomerInfo() {
        return customerInfo;
    }

    public void setCustomerInfo(CustomerInfo customerInfo) {
        this.customerInfo = customerInfo;
    }

    @XmlElementWrapper(name = "DataList_xmlsinglenode")
    @XmlElement(name = "DataDetail")
    public List<CustomerUnitBankList> getCustomerUnitBankList() {
        return customerUnitBankList;
    }

    public void setCustomerUnitBankList(List<CustomerUnitBankList> customerUnitBankList) {
        this.customerUnitBankList = customerUnitBankList;
    }
}
